package com.shandiangou.crm.dao;


import com.shandiangou.crm.model.HongbaoLog;
import org.springframework.stereotype.Repository;


/**
 * 营销业务操作的DAO
 */

@Repository
public interface MarketDao {

    /**
     * 插入红包操作记录
     * @param hongbaoLog
     * @return
     */
    int insert(HongbaoLog hongbaoLog);


    /**
     * 获得用户当天发送红包的数量
     * @param userId
     * @return
     */
    int countHongbaoByUserToday(Long userId);
}
